package com.huawei.hianalytics.f.f;

import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.huawei.hianalytics.f.g.h;
import com.huawei.hianalytics.f.g.j;
import com.huawei.hianalytics.g.b;
import com.huawei.hianalytics.util.d;
import java.util.Map;

public class k extends j {
    private String c;

    public k(String str, String str2, String str3, String str4, Context context, Map<String, String> map, Map<String, String> map2) {
        super(str, str2, str3, str4, context);
        this.c = j.a(map, map2);
        if (TextUtils.isEmpty(this.c)) {
            b.b("IMEventReportTaskEx", "commonHeaderExStr is empty!");
        } else {
            this.b = d.a(this.c);
        }
    }

    public void a() {
        if (!TextUtils.isEmpty(this.b)) {
            SharedPreferences d = h.d(this.a, "common_nc");
            if (!d.getAll().keySet().contains(this.b)) {
                h.a(d, this.b, this.c);
            }
        }
        super.a();
    }
}
